﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:proj="clr-namespace:Dsl.Ped.Framework.WPFControls.ProjectiveObject">
    
    <Style TargetType="{x:Type proj:ProjectiveObjectUserControl}">
        <Setter Property="FontFamily" Value="Consolas"/>
    </Style>

    <Color x:Key="ErrorColor" A="#FF" R="#FF" G="#00" B="#00" />
    <SolidColorBrush x:Key="ErrorColorBrush" Color="{StaticResource ErrorColor}" />
    
    <ControlTemplate x:Key="ValidationErrorTemplate">
        <Border BorderThickness="1" CornerRadius="1" BorderBrush="{StaticResource ErrorColorBrush}">
            <AdornedElementPlaceholder Margin="-1,-1,-1,-1"/>
        </Border>
    </ControlTemplate>

    <DataTemplate x:Key="projectiveObjectTemplate">
        <proj:ProjectiveObjectUserControl ProjectiveObject="{Binding}"/>            
    </DataTemplate>

    <DataTemplate x:Key="projectionTemplate">
        <ContentControl Content="{Binding View}"/>
    </DataTemplate>

    <DataTemplate x:Key="objectTemplate">
        <Label Content="{Binding}"/>
    </DataTemplate>

</ResourceDictionary>